package com.tjh.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tjh.common.utils.PageUtils;
import com.tjh.gulimall.product.entity.AttrEntity;
import com.tjh.gulimall.product.vo.AttrGroupRelationVo;
import com.tjh.gulimall.product.vo.AttrRespVo;
import com.tjh.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * Create by koala on 2021-01-24 21:36:11
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //day23
    void saveAttr(AttrVo attr);

    //day24
    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String type);

    //day25
    AttrRespVo getAttrInfo(Long attrId);

    //day26
    void updateAttr(AttrVo attr);

    //day28
    List<AttrEntity> getRelationAttr(Long attrgroupId);

    //day29
    void deleteRelation(AttrGroupRelationVo[] vos);

    //day30
    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    //day51
    List<Long> selectSearchAttrIds(List<Long> attrIds);
}

